﻿namespace NavigateTo2013
{
    using Microsoft.VisualStudio.Language.NavigateTo.Interfaces;
    using System;
    using System.ComponentModel.Composition;

    [Export(typeof(INavigateToItemProviderFactory))]
    public class NavigateToItemProviderFactory : INavigateToItemProviderFactory
    {
        public bool TryCreateNavigateToItemProvider(IServiceProvider serviceProvider, out INavigateToItemProvider provider)
        {
            ServiceProvider.Current = serviceProvider;
            provider = new NavigateToItemProvider();
            return true;
        }
    }
}